<?php get_header();?>
<!-- Trang nha hang -->
<body>
<div id="wrapper">
	<?php require_once TEMPLATEPATH.'/views/view-header.php';?>
    <?php require_once TEMPLATEPATH.'/views/view-menu.php';?>
    <div id="header-third">
    		<!--slideshow-->
 		   	<?php require_once TEMPLATEPATH.'/views/view-slide-show.php';?>
		    <!--end slideshow--> 
            <!--container-->
         <div id="container">
         <?php require_once TEMPLATEPATH.'/views/view-breadcrumb.php';?>
         <div class="clear"></div>
         <!--main content-->
            <div id="maincontent">
            	
            	
            	
            	<div id="page-index" class="page-detail-news-09-2"> 
            		<?php 
            		if(have_posts())
            		{
            			the_post();
            			$mytime = get_the_date();
            			$post_id = get_the_ID();
            		?>               
                	<div class="gioithieu">                    
	                    <h3><?php the_title();?> </h3>                        
                       <p class="date-publish">Last update <?php echo unix_to_gmt_sevent_usa2($mytime);?> (GMT+7) </p>
                    	<div id="box-content">     
		                    <?php the_content();?>
		                </div>                	
                    </div>
                    <?php 
            		}
                    ?>
                    <div class="bg-read-on">read on</div>
                    <div class="bg-color-read-on">
                    	<ul>
                    		<?php 
                    		$args = null;
                    		$args = db_list_different_post_type($post_id, 7, 'news-event', 'date', 'DESC', $wpdb->prefix.'display', 'display');
                    		query_posts($args);
                    		if(have_posts())
                    		{
                    			while (have_posts())
                    			{
                    				the_post();
                    				$post_id = get_the_ID();
                    				$title = get_the_title($post_id);
                    				$perlink = get_permalink($post_id);
                    				echo '
                    				<li><a href="'.$perlink.'">'.$title.'</a></li>
                    				';
                    			}
                    			wp_reset_query();
                    		}
                    		?>
                    		
                        </ul>
                    </div>
                    
                    
                </div>
            	
                
                
            </div>
            <!--main content-->
            <!--sidebar-right-->
            <?php get_sidebar();?> 
            <!--sidebar-right-->
            <div class="clear"></div> 
        </div>
        <!--container-->
        <!--bgfooter-->
<?php get_footer();?>
          